<template>
  <div class="site-footer">
    <div class="container">
      <div class="footer-service">
        <ul class="list-service clearfix">
          <li v-for="i in 5" :key="i">
            <a href="//www.mi.com/service/quick-repair">
              <em class="iconfont">&</em>
              预约维修服务
            </a>
          </li>
        </ul>
      </div>
      <div class="footer-links clearfix">
        <dl class="col-links" v-for="i in 6" :key="i">
          <dt>帮助中心</dt>
          <dd v-for="i in 3" :key="i">
            <a href="">账户管理</a>
          </dd>
        </dl>
        <div class="col-contact">
          <p class="phone">400-100-5678</p>
          <p>8:00-18:00（仅收市话费）</p>
          <a href="" class="btn btn-line-primary btn-small J_contactBtn">
            <em class="iconfont-message2"></em>人工客服
          </a>
          <div class="follow">
            关注小米：
            <a href="" class="wb"></a>
            <a href="" class="wx" @mouseenter="showImg" @mouseleave="hideImg"></a>
            <img src="../../../assets/imgs/wx-img.png" alt="" v-if="isOverWX">
          </div>
        </div>
      </div>
    </div>
  </div>
  
</template>

<script>
export default {
  name: 'Footer',
  data(){
    return{
      isOverWX: false
    }
  },
  methods: {
    showImg(){
      this.isOverWX = true
    },
    hideImg(){
      this.isOverWX = false
    }
  }
}
</script>

<style lang="less" scoped>
.site-footer{
  background-color: #fff;
}
.container {
  width: 1226px;
  margin-right: auto;
  margin-left: auto;
  .footer-service{
    padding: 27px 0;
    border-bottom: 1px solid #e0e0e0;
    .list-service{
      margin: 0;
      padding: 0;
      list-style-type: none;
      li{
        float: left;
        width: 19.8%;
        height: 25px;
        border-left: 1px solid #e0e0e0;
        font-size: 14px;
        line-height: 25px;
        text-align: center;
        a{
        color: #616161;
        -webkit-transition: color .2s;
        transition: color .2s;
        background-color: rgba(0,0,0,0);
        .iconfont{
          margin-right: 6px;
          font-size: 24px;
          line-height: 24px;
          vertical-align: -4px;
        }
      }
      a:hover{
        color: #f6700f;
      }
      }
      
    }
  }
}
.container:after, .container:before {
    content: " ";
    display: table;
}
.container:after {
    clear: both;
}
.site-footer .list-service li:first-child {
    border-left: 0;
}

// 下面的信息
.site-footer .footer-links {
  padding: 40px 0;
   .col-links {
    float: left;
    width: 160px;
    margin: 0;
    dt{
      margin: -1px 0 26px;
      font-size: 14px;
      line-height: 1.25;
      color: #424242;
      display: block;
      dd{
        margin: 10px 0 0;
        font-size: 10px;
        a{
          color: #757575;
          display: inline;
        }
        a:hover{
          color: #f6700f;
        }
      }
    }
    
  }
}
.col-contact {
      float: right;
      width: 251px;
      border-left: 1px solid #e0e0e0;
      text-align: center;
      color: #616161;
      .phone{
        font-size: 22px;
        line-height: 1;
        color: #ff6700;
      }
      p{
        margin: 0 0 5px 0;
        font-size: 12px;
      }
      .btn-line-primary {
        border:1px solid #ff6700;
        background: #fff;
        color: #ff6700;
        width: 118px;
        height: 28px;
        display: inline-block;
        padding: 0px;
        margin: 0;
        // border: 1px solid #b0b0b0;
        font-size: 14px;
        line-height: 28px;
        text-align: center;
        cursor: pointer;
        -webkit-transition: all .4s;
        transition: all .4s;
      }
      .btn:hover{
        color: #fff;
        background: #ff6700;
      }
       .follow {
        font-size: 12px;
        margin-top: 10px;
        position: relative;
        a{
          width: 24px;
          height: 24px;
          display: inline-block;
          vertical-align: middle;
          margin-left: 6px;
          margin-top: -3px;
        }
        .wb{
          background: url(https://cdn.cnbj1.fds.api.mi-img.com/staticsfile/global/wb.png) 50% 0 no-repeat;
          background-size: cover;
        }
        .wx {
          background: url(https://cdn.cnbj1.fds.api.mi-img.com/staticsfile/global/wx.png) 50% 0 no-repeat;
          background-size: cover;
        }
        img{
          width: 126px;
          height: 126px;
          z-index: 2;
          position: absolute;
          top: 20px;
          left: 100px;
        }
      }
    }
</style>